/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.xalisa.designpatterns.creational.factoryMethod;

/**
 *
 * @author Enkosi
 */
public class factoryMethod { 
    
    public Person getPerson(String name, String gender) {
//        if (gender.equals("M")) {
//            return new Male(name);
//        } else if (gender.equals("F")) {
//            return new Female(name);
//        } else {
//            return null;
//        }
        return null;
    }
}
